# -*- coding: utf-8 -*-
# !/usr/bin/env python

from rest_framework.views import APIView

from components.resource_management.conf_manage.dao import query_soft_conf
from utils.views import Result

class SoftConfM(APIView):
    def get(self, request):
        data = request.query_params
        host_data_list = []
        if data['soft_id']:
            host_data_list = query_soft_conf(data['soft_id'])
        return Result.success_response(data=host_data_list, msg='查询成功')